package com.mrjoew.weekend.repositories.sys;

import com.mrjoew.weekend.entities.po.SysRolePO;
import com.mrjoew.weekend.repositories.BaseRepository;
import org.springframework.stereotype.Repository;

import java.util.Set;

/**
 * @author Christopher Jones
 * @ClassName SysRoleRepository
 * @explain
 * @date 2020/6/21 0021 14:22
 */
@Repository
public interface SysRoleRepository extends BaseRepository<SysRolePO, Integer> {

    /**
     * 通过角色名称获取全部
     *
     * @param name 角色名称
     * @return Set<SysRolePo>
     */
    public Set<SysRolePO> findAllByName(String name);
}
